package com.zhihuichongcheng.application.bean.approval;

import android.os.Parcel;
import android.os.Parcelable;

import com.zhihuichongcheng.application.bean.mine.UserBean;

/**
 * Created by 3water on 2016/11/19.
 */

public class Tasks implements Parcelable{
    public static final Creator<Tasks> CREATOR = new Creator<Tasks>() {
        @Override
        public Tasks createFromParcel(Parcel in) {
            return new Tasks(in);
        }

        @Override
        public Tasks[] newArray(int size) {
            return new Tasks[size];
        }
    };
    private String remark;
    private UserBean user;
    private String createTime;


    public Tasks()
    {

    }

    protected Tasks(Parcel in) {
        remark = in.readString();
        user = in.readParcelable(UserBean.class.getClassLoader());
        createTime = in.readString();
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(remark);
        dest.writeParcelable(user, flags);
        dest.writeString(createTime);
    }
}
